<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/comm/header.jsp"%>
<div class="container" style="width:100%">
    <div class="panel panel-success">
        <div class="panel-heading">
            <h3 class="panel-title" id="aaa"data-toggle="collapse" data-target=".panel-body">
                查询条件
                <span class="caret pull-right" ></span>
            </h3>
        </div>
        <div class="panel-body">
            <form class="form-inline" id="queryForm">
                <div class="form-group">
                    <label>客户姓名</label>
                    <input type="email" class="form-control" name="name">
                </div>
                <div class="form-group">
                    <label>分配状态</label>
                    <select class="form-control" name="fenpeiid">
                        <option value="0">不限</option>
                    </select>
                </div>

                <button type="button" onclick="chaxun()" class="btn btn-primary"><i class="glyphicon glyphicon-search"></i> 查询</button>
            </form>
        </div>
    </div>
    <div id="toolbar">
        <button class="btn btn-danger" onclick="piliangDel()"><i class="glyphicon glyphicon-alert"></i>批量删除</button>
        <button class="btn btn-success" onclick="add()"><i class="glyphicon glyphicon-plus-sign"></i>添加</button>
        <button class="btn btn-warning" onclick="chakan()" ><i class="glyphicon glyphicon-zoom-in"></i>查看</button>
        <button class="btn btn-group"  onclick="fenpei()"><i class="glyphicon glyphicon-user"></i>分配</button>
    </div>
    <table id="roleTb"
           data-toggle="table"
           data-url="list"
           data-striped="true"
           data-height="550"
           data-toolbar="#toolbar">
        <thead>
        <tr>
            <th data-checkbox="true"></th>
            <th data-field="customerId"></th>
            <th data-field="name">客户姓名</th>
            <th data-field="sex">性别</th>
            <th data-field="customertype.customerTypeName">类型</th>
            <th data-field="kehustart.kehuzhuangtai" >状态</th>
            <th data-field="fenpeistart.fenpeizhuangtai">分配状态</th>
            <th data-field="createTime" data-formatter="fmtDate">录入时间</th>
            <th data-field="staff.empName" >录入人</th>
            <th  data-formatter="actionFormatter" data-events="actionEvents" >操作</th>
        </tr>
        </thead>
    </table>
    <div id="update">
        <form style="padding:20px 80px" method="get">
            <input type="hidden" name="customerId" value=""/>
            <div class="form-group">
                <label>客户编码：</label>
                <input readonly type="text" class="form-control" name="customerDicId">
            </div>
            <div class="form-group">
                <label>客户姓名：</label>
                <input type="text" class="form-control" name="name">
            </div>
            <div class="form-group">
                <label>生日：</label>
                <input type="text" class="form-control" name="birthday">
            </div>
            <div class="form-group">
                <label>类型：</label>
                <select id="" class="form-control" name="type">
                    <option value="0">不限</option>
                </select>
            </div>
            <div class="form-group">
                <label>状态：</label>
                <select  class="form-control" name="status">
                    <option value="0">不限</option>
                </select>
            </div>
            <div class="form-group">
                <label>手机：</label>
                <input type="text" class="form-control" name="cellphone">
            </div>
            <div class="form-group">
                <label>办公电话：</label>
                <input type="text" class="form-control" name="officeTel">
            </div>
            <div class="form-group">
                <label>电子邮箱：</label>
                <input type="text" class="form-control" name="email">
            </div>
            <div class="form-group">
                <label>家庭电话：</label>
                <input type="text" class="form-control" name="homeTel">
            </div>
            <div class="form-group">
                <label>联系地址：</label>
                <input type="text" class="form-control" name="address">
            </div>
            <div class="form-group">
                <label>备注信息：</label>
                <input type="text" class="form-control" name="feedBack">
            </div>
        </form>
    </div>

    <%--添加客户--%>
    <div id="add">
        <form style="padding:20px 80px" method="post">
            <%--<input type="hidden" name="customerId" value=""/>--%>
            <div class="form-group">
                <label>客户编码：</label>
                <input  type="text" class="form-control" name="customerDicId">
            </div>
            <div class="form-group">
                <label>客户姓名：</label>
                <input type="text" class="form-control" name="name">
            </div>
            <div class="form-group">
                <label>性别：</label>
                <input type="text" class="form-control" name="sex">
            </div>
            <div class="form-group">
                <label>生日：</label>
                <input type="date" class="form-control" name="birthday">
            </div>
            <div class="form-group">
                <label>类型：</label>
                <select class="form-control" name="type">
                    <option value="0">不限</option>
                </select>
            </div>
            <div class="form-group">
                <label>状态：</label>
                <select  class="form-control" name="status">
                    <option value="0">不限</option>
                </select>
            </div>
            <div class="form-group">
                <label>手机：</label>
                <input type="text" class="form-control" name="cellphone">
            </div>
            <div class="form-group">
                <label>办公电话：</label>
                <input type="text" class="form-control" name="officeTel">
            </div>
            <div class="form-group">
                <label>电子邮箱：</label>
                <input type="text" class="form-control" name="email">
            </div>
            <div class="form-group">
                <label>家庭电话：</label>
                <input type="text" class="form-control" name="homeTel">
            </div>
            <div class="form-group">
                <label>联系地址：</label>
                <input type="text" class="form-control" name="address">
            </div>
            <div class="form-group">
                <label>分配状态：</label>
                <select  class="form-control" name="assignmentStatus">
                    <option value="0">不限</option>
                </select>
            </div>
            <div class="form-group">
                <label>录入时间：</label>
                <input type="date" class="form-control" name="createTime">
            </div>
            <div class="form-group">
                <label>备注信息：</label>
                <input type="text" class="form-control" name="feedBack">
            </div>
                <div class="form-group">
                    <label>录入人：</label>
                    <input type="text" class="form-control" name="createMan">
                </div>
        </form>
    </div>
    <%--查看详情--%>
    <div id="cha">
        <form style="padding:20px 80px" method="post">
            <input type="hidden" name="customerId" value=""/>
            <div class="form-group">
                <label>客户编码：</label>
                <input readonly  type="text" class="form-control" name="customerDicId">
            </div>
            <div class="form-group">
                <label>客户姓名：</label>
                <input readonly type="text" class="form-control" name="name">
            </div>
            <div class="form-group">
                <label>性别：</label>
                <input readonly type="text" class="form-control" name="sex">
            </div>
            <div class="form-group">
                <label>生日：</label>
                <input readonly type="text" class="form-control" name="birthday">
            </div>
            <div class="form-group">
                <label>类型：</label>
                <select readonly class="form-control" name="type">
                    <option value="0">不限</option>
                </select>
            </div>
            <div class="form-group">
                <label>状态：</label>
                <select readonly  class="form-control" name="status">
                    <option value="0">不限</option>
                </select>
            </div>
            <div class="form-group">
                <label>分配状态：</label>
                <select readonly  class="form-control" name="fenpeiid">
                    <option value="0">不限</option>
                </select>
            </div>
            <div class="form-group">
                <label>手机：</label>
                <input readonly type="text" class="form-control" name="cellphone">
            </div>
            <div class="form-group">
                <label>办公电话：</label>
                <input readonly  type="text" class="form-control" name="officeTel">
            </div>
            <div class="form-group">
                <label>电子邮箱：</label>
                <input readonly type="text" class="form-control" name="email">
            </div>
            <div class="form-group">
                <label>家庭电话：</label>
                <input readonly type="text" class="form-control" name="homeTel">
            </div>
            <div class="form-group">
                <label>联系地址：</label>
                <input readonly type="text" class="form-control" name="address">
            </div>
            <div class="form-group">
                <label>备注信息：</label>
                <input readonly type="text" class="form-control" name="feedBack">
            </div>
        </form>
    </div>
    <%--分配===================================================================================--%>
    <div id="fenpei">
        <form style="padding:20px 80px" method="get">
            <input type="hidden" name="customerId" value=""/>
            <label>客户姓名：</label><input readonly type="text" class="form-control" name="name">
            <label>性别：</label><input readonly type="text" class="form-control" name="sex">
            <label>客户类型：</label><select readonly class="form-control" name="type">
            <option value="0">不限</option>
        </select>
            <label>客户状态：</label><select readonly  class="form-control" name="status">
            <option value="0">不限</option>
        </select>
            <label>分配状态：</label><select readonly  class="form-control" name="fenpeizt">
                                            <option value="0">不限</option>
                                     </select>
            <label>联系电话：</label><input readonly type="text" class="form-control" name="cellphone">
            <%--<label>最后联络人：</label><input readonly type="text" class="form-control" name="empName">--%>
            <label>最后购物时间：</label><input readonly type="date" class="form-control" name="createTime">
            <hr/>

            <div class="form-group">
            <label>分配给：</label>
            <select  class="form-control" name="serviceProxy"></select>
        </div>

        </form>
    </div>
</div>
<%@include file="/comm/footer.jsp"%>
<script src="/static/scripts/khzygl.js"></script>